package c.j.a.d.a;

import c.j.a.c.m.d;
import com.ss.android.socialbase.appdownloader.DownloadHandlerService;
import com.ss.android.socialbase.downloader.g.c;

/* compiled from: DownloadHandlerService */
public class b implements Runnable {
    public final /* synthetic */ c a;
    public final /* synthetic */ d b;
    public final /* synthetic */ c.j.a.d.b.d.d c;

    public b(DownloadHandlerService downloadHandlerService, c cVar, d dVar, c.j.a.d.b.d.d dVar2) {
        this.a = cVar;
        this.b = dVar;
        this.c = dVar2;
    }

    /* JADX WARNING: Removed duplicated region for block: B:14:0x002c A:{Catch:{ Exception -> 0x0043 }} */
    /* JADX WARNING: Removed duplicated region for block: B:25:? A:{SYNTHETIC, RETURN} */
    /* JADX WARNING: Removed duplicated region for block: B:17:0x003d A:{Catch:{ Exception -> 0x0043 }} */
    public void run() {
        /*
        r7 = this;
        r0 = new java.io.File;	 Catch:{ Exception -> 0x0048 }
        r1 = r7.a;	 Catch:{ Exception -> 0x0048 }
        r2 = r1.e;	 Catch:{ Exception -> 0x0048 }
        r1 = r1.b;	 Catch:{ Exception -> 0x0048 }
        r0.<init>(r2, r1);	 Catch:{ Exception -> 0x0048 }
        r1 = r0.exists();	 Catch:{ Exception -> 0x0048 }
        if (r1 == 0) goto L_0x004c;
    L_0x0011:
        r1 = c.j.a.d.b.e.b.a();	 Catch:{ Exception -> 0x0043 }
        r2 = "";
        if (r1 == 0) goto L_0x0026;
    L_0x0019:
        r3 = c.j.a.d.a.h.a();	 Catch:{ Exception -> 0x0043 }
        r0 = c.j.a.c.y.a.i.c(r1, r0, r3);	 Catch:{ Exception -> 0x0043 }
        if (r0 == 0) goto L_0x0026;
    L_0x0023:
        r0 = r0.packageName;	 Catch:{ Exception -> 0x0043 }
        goto L_0x0027;
    L_0x0026:
        r0 = r2;
    L_0x0027:
        r1 = r7.b;	 Catch:{ Exception -> 0x0043 }
        r3 = 3;
        if (r1 == 0) goto L_0x0039;
    L_0x002c:
        r4 = r7.a;	 Catch:{ Exception -> 0x0043 }
        r4 = r4.g0();	 Catch:{ Exception -> 0x0043 }
        r5 = r7.a;	 Catch:{ Exception -> 0x0043 }
        r5 = r5.X;	 Catch:{ Exception -> 0x0043 }
        r1.a(r4, r3);	 Catch:{ Exception -> 0x0043 }
    L_0x0039:
        r1 = r7.c;	 Catch:{ Exception -> 0x0043 }
        if (r1 == 0) goto L_0x004c;
    L_0x003d:
        r4 = r7.a;	 Catch:{ Exception -> 0x0043 }
        r1.J(r3, r4, r0, r2);	 Catch:{ Exception -> 0x0043 }
        goto L_0x004c;
    L_0x0043:
        r0 = move-exception;
        r0.printStackTrace();	 Catch:{ Exception -> 0x0048 }
        goto L_0x004c;
    L_0x0048:
        r0 = move-exception;
        r0.printStackTrace();
    L_0x004c:
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.j.a.d.a.b.run():void");
    }
}
